import request from '@/utils/request'

// 查询流程定义节点列表
export function listNpmnNode(query) {
  return request({
    url: '/workflow/npmnNode/list',
    method: 'get',
    params: query
  })
}

// 查询流程定义节点详细
export function getNpmnNode(id) {
  return request({
    url: '/workflow/npmnNode/' + id,
    method: 'get'
  })
}

// 新增流程定义节点
export function addNpmnNode(data) {
  return request({
    url: '/workflow/npmnNode',
    method: 'post',
    data: data
  })
}

// 修改流程定义节点
export function updateNpmnNode(data) {
  return request({
    url: '/workflow/npmnNode',
    method: 'put',
    data: data
  })
}

// 删除流程定义节点
export function delNpmnNode(id) {
  return request({
    url: '/workflow/npmnNode/' + id,
    method: 'delete'
  })
}
